/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.race.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.race.entity.RaceTeam;
import com.lczyfz.istep.modules.race.entity.RaceUser;

import java.util.List;

/**
 * 竞赛团队列表DAO接口
 * @author CY
 * @version 2017-04-17
 */
@MyBatisDao
public interface RaceTeamDao extends CrudDao<RaceTeam> {
    // 获取所以竞赛成员
	List<RaceUser> findAllListUser();
	//团队详情
	List<RaceUser> teamDetails(String teamId);

	RaceTeam findTeamId(String tid);

	void raceUserTeam(RaceTeam raceTeam);

	void  deleteRaceUserId(String userId);
	void  updateRaceUserId(RaceTeam raceTeam);

	List<RaceTeam> selectRaceTeamId(String teamId);

	RaceTeam  findUserTeam(String userId);

	List<RaceTeam> findAllTeam();

	List<RaceTeam> findByName(String teamName);


}